package demo1;

/**
 * @Author 12629
 * @Description：
 */
public /*abstract */  class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name+" 正在吃狗粮....");
    }
    /*public abstract void test();*/

    @Override
    public void sleep() {
        System.out.println(this.name+" 正在窝里睡觉.....");
    }
}
/*
class PetDog extends Dog {

    public PetDog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {

    }

    @Override
    public void test() {

    }
}*/
